import request from '@/utils/request'
import myUrl from "@/api/my-url";
export function login(data) {
  return request({
    url: myUrl.common.login,
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: myUrl.rbac.guardUser.getGuardUser,
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: myUrl.common.logout,
    method: 'post'
  })
}
